From 217f28719edf08ba2e15349713df7c9f8ab871fb Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 13 Apr 1994 18:14:44 +0000 Subject: [PATCH] (Fset_window_configuration): Only call X fns if HAVE_X_WINDOWS. --- src/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window.c b/src/window.c index ccb81357525..9515c1ca082 100644 --- a/src/window.c +++ b/src/window.c @@ -2591,9 +2591,11 @@ by `current-window-configuration' (which see).") if (XFASTINT (data->frame_height) != previous_frame_height || XFASTINT (data->frame_width) != previous_frame_width) change_frame_size (f, data->frame_height, data->frame_width, 0, 0); +#ifdef HAVE_X_WINDOWS if (XFASTINT (data->frame_menu_bar_lines) != previous_frame_menu_bar_lines) x_set_menu_bar_lines (f, data->frame_menu_bar_lines, 0); +#endif windows_or_buffers_changed++; @@ -2731,8 +2733,10 @@ by `current-window-configuration' (which see).") || previous_frame_width != FRAME_WIDTH (f)) change_frame_size (f, previous_frame_height, previous_frame_width, 0, 0); +#ifdef HAVE_X_WINDOWS if (previous_frame_menu_bar_lines != FRAME_MENU_BAR_LINES (f)) x_set_menu_bar_lines (f, previous_frame_menu_bar_lines, 0); +#endif } #ifdef MULTI_FRAME -- 2.30.2